package com.tucue.dao;

import com.tucue.model.LoanService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface LoanServiceMapper {
    int deleteByPrimaryKey(Integer loanserviceid);

    int insert(LoanService record);

    int insertSelective(LoanService record);

    LoanService selectByPrimaryKey(Integer loanserviceid);

    List<LoanService>  selectByPrimaryKeyAll(Integer loanserviceid);

    //批量查询 贷款服务
    List<Map<String,String>> selectLoanServiceInfo ();

    List<LoanService> selectAll();

    //更新贷款服务
    int updateLoanService(LoanService record);

    int updateByPrimaryKey(LoanService record);

    //单个删除贷款服务产品
    int deleteLoanService(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除贷款服务产品
    int deleteLoanServiceBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);

    //批量修改贷款服务产品状态
    int updateLoanServiceStatusBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "status") int visible);
}